import request from '@/utils/request'

// 查询采样点配置列表
export function getSamplingPointList(params) {
  return request({
    url: '/operation/web/operationSamplingPointSetting/list',
    method: 'get',
    params
  })
}

// 获取采样点配置详细信息
export function getSamplingPointDetail(samplingPointId) {
  return request({
    url: `/operation/web/operationSamplingPointSetting/${samplingPointId}`,
    method: 'get'
  })
}

// 新增采样点配置
export function addSamplingPoint(data) {
  return request({
    url: '/operation/web/operationSamplingPointSetting',
    method: 'post',
    data
  })
}

// 修改采样点配置
export function updateSamplingPoint(data) {
  return request({
    url: '/operation/web/operationSamplingPointSetting',
    method: 'put',
    data
  })
}

// 删除采样点配置
export function deleteSamplingPoint(samplingPointIds) {
  return request({
    url: `/operation/web/operationSamplingPointSetting/${samplingPointIds}`,
    method: 'delete'
  })
}